<script setup>
  defineProps({
    texts: {
      type: Array,
      default: () => []
    }
  })
</script>

<template>
    <div class="text-result">
      <template v-for="text in previewData">
        <p>{{ text }}</p>
      </template>
    </div>
</template>

<style scoped lang="scss">
  .text-result {
    height: 300px;
    overflow-y: auto;

    p {
      margin: 0;
      line-height: 1.5;
    }
  }
</style>